#ifndef OSCAR_LOGGER_H
#define OSCAR_LOGGER_H

#include <typedefs.h>
#include <trace.h>

#ifdef OSCAR_LOGGER

#define trace(format, ...) \
	PFprintf("OSCAR: " "%s@%d " format "\n", __FILE__, __LINE__, ##__VA_ARGS__ )
#define flog(str,data,size) \
	_log(((char *)(str)), ((BYTE *)(data)), ((UINT32)(size)))
#define flog_kill() \
	_kill_log()

#else

#define trace(format, ...)
#define flog(str,data,size)
#define flog_kill()

#endif



#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */ 
void _log( char * str, BYTE * data, UINT32 size );
void _kill_log( void );
#ifdef __cplusplus
}
#endif /* __cplusplus */ 


#endif